package com.iqiyi.pps.epg.core.model.record;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * Created by karkarrotxu on 2018/4/11.
 */
@Entity
@Table(name = "record_channel")
@Cache(usage = CacheConcurrencyStrategy.NONE)
public class RecordChannel {

    public static final Integer STATUS_DEL = 0;
    public static final Integer STATUS_USE = 1;

    private long id;
    private String channelName;
    private String channelCode;
    private int status;
    private boolean hasCaption;
    private Timestamp updateTime;
    private Timestamp createTime;
    private String opUser;

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Column(name = "channel_name")
    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    @Column(name = "channel_code")
    public String getChannelCode() {
        return channelCode;
    }

    public void setChannelCode(String channelCode) {
        this.channelCode = channelCode;
    }

    @Column(name = "status")
    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Column(name = "has_caption")
    public boolean isHasCaption() {
        return hasCaption;
    }

    public void setHasCaption(boolean hasCaption) {
        this.hasCaption = hasCaption;
    }

    @Column(name = "update_time", insertable = false, updatable = false)
    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    @Column(name = "create_time", updatable = false )
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    @Column(name = "op_user")
    public String getOpUser() {
        return opUser;
    }

    public void setOpUser(String opUser) {
        this.opUser = opUser;
    }
}
